package com.stedu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RepairTask implements Serializable {
    //主键
    private Integer tid;
    //维修描述
    @NotBlank(message = "维修事件名不能为空")
    private String tname;
    //维修地址
    @NotBlank(message = "维修地址不能为空")
    private String location;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @NotNull(message = "维修开始时间不能为空")
    private Date rstart;
    //维修结束时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date rend;
    //项目进度
    private Integer rstate;
    //维修人员
    private List<Repairer> emps;



}
